package Game;

import java.awt.*;

public class BgObj extends GameObject{
    public BgObj() {
    }

    public BgObj(Image image, int x, int y, double speed) {
        super(image, x, y, speed);
    }

    @Override
    public void paintSelf(Graphics gImagine) {
        super.paintSelf(gImagine);
        y+=speed;
        if(y>=0)
            y=-900;
    }
}
